#include "gd32f10x.h"
#include "systick.h"
#include <stdio.h>
#include "main.h"
#include "led.h"
#include "delay.h"

/*!
    \brief      main function
    \param[in]  none
    \param[out] none
    \retval     none
*/

int main(void)
{
//    /* configure systick */
//    systick_config();
	Led_Init();
	while(1){
		Led_Open(LED1);
        Led_Close(LED2);
        delay_ms(1000);
        Led_Close(LED1);
        Led_Open(LED2);
        delay_ms(1000);
	}
   
}

/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
//    usart_data_transmit(EVAL_COM0, (uint8_t)ch);
//    while(RESET == usart_flag_get(EVAL_COM0, USART_FLAG_TBE));

    return ch;
}
